//
//  JSQKeyboardView.m
//  Conversation
//
//  Created by C_HAO on 15/12/14.
//  Copyright © 2015年 CHAOO. All rights reserved.
//

#import "JSQKeyboardView.h"
#import "UIImage+JSQMessages.h"

@implementation JSQKeyboardView

- (void)awakeFromNib {
    [super awakeFromNib];

    UIImage *accessoryImage = [UIImage jsq_bubbleFaceImage];
    UIImage *normalImage = [accessoryImage jsq_imageMaskedWithColor:[UIColor darkGrayColor]];
    UIImage *highlightedImage = [accessoryImage jsq_imageMaskedWithColor:[UIColor lightGrayColor]];

    [_faceButton setImage:normalImage forState:UIControlStateNormal];
    [_faceButton setImage:highlightedImage forState:UIControlStateHighlighted];

    _faceButton.contentMode = UIViewContentModeScaleAspectFit;
    _faceButton.backgroundColor = [UIColor clearColor];
    _faceButton.tintColor = [UIColor lightGrayColor];
}

- (IBAction)face:(id)sender {
    [self.delegate keyboard:self faceButton:self.faceButton];
}

@end
